﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuYiAdmin.Net.Common.Global
{
    /// <summary>
    /// 数据库配置
    /// </summary>
    public class DBConfig
    {
        /// <summary>
        /// 数据库类型
        /// </summary>
        public int DBType { get; set; }

        /// <summary>
        /// 数据库连接串
        /// </summary>
        public String ConnectionString { get; set; }

        /// <summary>
        /// 数据库超时时间
        /// </summary>
        public int CommandTimeOut { get; set; }

        /// <summary>
        /// 数据库备份路径
        /// </summary>
        public String BackupPath { get; set; }

        /// <summary>
        /// 读写分离从库
        /// </summary>
        public String SlaveConnectionString { get; set; }

        /// <summary>
        /// 读写分离从库2
        /// </summary>
        public String SlaveConnectionString2 { get; set; }
    }
}
